﻿namespace EventbriteApi.Model
{
    using System;

    public class EventbriteException : Exception
    {
        public EventbriteException(string type, string message)
            : base(message)
        {
            this.Type = type;
        }

        public override string Message
        {
            get
            {
                return String.Format("{0} (Error Type: {1})", base.Message, this.Type);
            }
        }        

        public string Type { get; set; }
    }
}
